<extend name="Public/Dialog/Common"/>
<block name="pageContent">
    <div class="bjui-pageContent">
        <form action="{:U('', I())}" class="pageForm" data-toggle="validate" method="post">
            <table class="table table-condensed table-hover" cellpadding="5">
                <tbody>
                <tr>
                    <td>
                        <label class="control-label x85">用户名：</label>
                        <input type="text" data-rule="required" size="30" class="text input-large" name="username"
                               value="{$info.username}">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">密码:</label>
                        <input type="password" size="30" name="password" value="">
                        <span class="check-tips">（用户密码不能少于6位）</span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">确认密码：</label>
                        <input type="password" size="30" name="repassword" value="">
                    </td>
                </tr>
                <!--<tr>
                    <td>
                        <label class="control-label x85">性别：</label>
                        <input type="radio" name="sex" id="sex0" data-toggle="icheck" data-label="女" value="0"
                        <if condition="$info['sex']==0">checked</if>
                        >
                        <input type="radio" name="sex" id="sex1" data-toggle="icheck" data-label="男" value="1"
                        <if condition="$info['sex']==1">checked</if>
                        >
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">手机号码：</label>
                        <input type="text" size="30" name="mobile" value="{$info.mobile}">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x85">邮箱：</label>
                        <input type="text" size="30" name="email" value="{$info.email}">
                    </td>
                </tr>-->
                <tr>
                    <td>
                        <label class="control-label x85">状态：</label>
                        <input type="radio" name="status" id="status0" data-toggle="icheck" data-label=禁用 value="0"
                        <if condition="$info['status']==0">checked</if>
                        >
                        <input type="radio" name="status" id="status1" data-toggle="icheck" data-label="启用" value="1"
                        <if condition="$info['status']==1">checked</if>
                        >
                    </td>
                </tr>
                <td>
                    <label class="control-label x85">所属父级：</label>
                    <select name="pid" data-toggle="selectpicker">
                        <?php if($userList)foreach($userList as $arr):?>
                        <option value="{$arr.id}" <?php echo $arr['id']==I('get.pid')?'selected':'';?>>{$arr.username}</option>
                        <?php endforeach;?>
                    </select>
                </td>
                </tbody>
            </table>
            <input type="hidden" name="uid" value="{$info.id}">
            <input type="hidden" name="id" value="{$info.id}">
        </form>
    </div>
</block>